<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>

<head>

<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">


<title>表单交互</title>
<link
	href="${pageContext.request.contextPath }/css/bootstrap.min.css?v=3.3.6"
	rel="stylesheet">
<link
	href="${pageContext.request.contextPath }/css/font-awesome.css?v=4.4.0"
	rel="stylesheet">
<link
	href="${pageContext.request.contextPath }/css/plugins/iCheck/custom.css"
	rel="stylesheet">
<link href="${pageContext.request.contextPath }/css/animate.css"
	rel="stylesheet">
<link href="${pageContext.request.contextPath }/css/style.css?v=4.1.0"
	rel="stylesheet">

</head>

<body class="gray-bg">
	<button class="btn btn-primary" onclick="showMyFormModal()">模态框</button>

	<div class="wrapper wrapper-content animated fadeInRight">
		<div class="modal inmodal" id="myFormModal" tabindex="-1"
			role="dialog" aria-hidden="true">
			<div class="modal-dialog">
				<div class="modal-content animated fadeIn">
					<div class="modal-header">
						<button type="button" class="close" data-dismiss="modal">
							<span aria-hidden="true">&times;</span><span class="sr-only">关闭</span>
						</button>
						<h4 class="modal-title">修改角色</h4>
					</div>
					<div class="row">
						<div class="col-sm-12">
							<div class="ibox float-e-margins">

								<div class="ibox-content">
									<form method="get" class="form-horizontal" id="myForm">
										<div class="form-group has-success">
											<label class="col-sm-4 control-label">用户id：</label>
											<div class="col-sm-6">
												<input type="text" name="userId"
													class="form-control input-sm " >
												<i class="glyphicon glyphicon-ok form-control-feedback my-tip-i"></i>
											</div>
										</div>
										<div class="form-group has-error">
											<label class="col-sm-4 control-label">邮箱：</label>
											<div class="col-sm-6">
												<input type="text" name="email"
													class="form-control input-sm" >
												<i class="glyphicon glyphicon-remove form-control-feedback my-tip-i"></i>
												<label class="control-label my-tip-label">邮箱格式不合法 </label>
											</div>
										</div>
										<div class="form-group">
											<label class="col-sm-4 control-label">个人描述：</label>
											<div class="col-sm-6">
												<textarea rows="" cols="" class="form-control"
													name="userDesc" ></textarea>
											</div>
										</div>

									</form>
								</div>
							</div>
						</div>
					</div>
					<div class="modal-footer">
						<button type="button" class="btn btn-white" data-dismiss="modal">关闭</button>
						<button type="button" class="btn btn-primary" onclick="saveMyForm()">保存</button>
					</div>
				</div>
			</div>
		</div>
	</div>



	<!-- 全局js -->
	<script
		src="${pageContext.request.contextPath }/js/jquery.min.js?v=2.1.4"></script>
	<script
		src="${pageContext.request.contextPath }/js/bootstrap.min.js?v=3.3.6"></script>

	<!-- 自定义js -->
	<script src="${pageContext.request.contextPath }/js/content.js?v=1.0.0"></script>

	<!-- 表单验证插件   -->
	<script
		src="${pageContext.request.contextPath }/js/plugins/validate/jquery.validate.js"></script>
	<script
		src="${pageContext.request.contextPath }/js/plugins/validate/messages_zh.min.js"></script>

	<!-- iCheck -->
	<script
		src="${pageContext.request.contextPath }/js/plugins/iCheck/icheck.min.js"></script>
	<script>
		$(document).ready(function() {
			$('.i-checks').iCheck({
				checkboxClass : 'icheckbox_square-green',
				radioClass : 'iradio_square-green',
			});
		});
	</script>


	<script src="${pageContext.request.contextPath }/myJs/common.js"></script>
	<script src="${pageContext.request.contextPath }/myFormValidate.js"></script>
</body>

</html>
